package com.css.zfzx.fxpg.modules.preestimate.workspace.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.preestimate.workspace.repository.entity.FxPreestimateWorkspaceEntity;
import com.css.zfzx.fxpg.modules.preestimate.workspace.viewobjects.FxPreestimateWorkspaceQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.List;

/**
 * @author andy
 * @date 2020-11-19
 */

public interface FxPreestimateWorkspaceService {

    public JSONObject queryFxPreestimateWorkspaces(FxPreestimateWorkspaceQueryParams queryParams, int curPage, int pageSize);

    public FxPreestimateWorkspaceEntity getFxPreestimateWorkspace(String id);

    public FxPreestimateWorkspaceEntity saveFxPreestimateWorkspace(FxPreestimateWorkspaceEntity fxPreestimateWorkspace);

    public FxPreestimateWorkspaceEntity updateFxPreestimateWorkspace(FxPreestimateWorkspaceEntity fxPreestimateWorkspace);

    public void deleteFxPreestimateWorkspaces(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    public List<FxPreestimateWorkspaceEntity> getFxPreestimateWorkspaces(FxPreestimateWorkspaceQueryParams queryParams);

    public String importExcel(MultipartFile file);

    public void saveOrUpdate(FxPreestimateWorkspaceEntity workspaceEntity);

    public String exportExcel(FxPreestimateWorkspaceQueryParams queryParams, HttpServletResponse response);

    public String importSHP(MultipartFile[] files);

    public String importSHPFile(File file);

}
